package com.example.javabasic.elasticsearch.booksearch;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @description 数据工具
 * @Author Lin FuYuan
 * @date 2021/6/16
 */
public class DataUtils {
    public static List<Book> bookList() {
        Book book1 = new Book("1", "第一本书标题", Arrays.asList("book1作者A", "book1作者B"), "概述: 这是一本简单的书", "2021-06-01", 20, "发布人:小一", "这本书的内容有点长");
        Book book2 = new Book("2", "第二本书标题", Arrays.asList("book2作者A", "book1作者B"), "概述: 这是一本复杂的书", "2021-06-02", 21, "发布人:小二", "这本书的内容有点菜");
        Book book3 = new Book("3", "第三本书标题", Arrays.asList("book3作者A", "book1作者B"), "概述: 这是一本奇怪的书", "2021-06-03", 22, "发布人:小三", "这本书的内容有点怪");
        Book book4 = new Book("4", "第四本书标题", Arrays.asList("book4作者A", "book1作者B"), "概述: 这是一本有趣的书", "2021-06-04", 23, "发布人:小四", "这本书的内容有点短");
        Book book5 = new Book("5", "第五本书标题", Arrays.asList("book5作者A", "book1作者B"), "概述: 这是一本无聊的书", "2021-06-05", 24, "发布人:小五", "这本书的内容很内涵");
        return Arrays.asList(book1, book2, book3, book4, book5);
    }




}
